
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Nifty Logic Planner</title> 
    

    <!--CSS file (default YUI Sam Skin) -->
    <link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.8.2r1/build/autocomplete/assets/skins/sam/autocomplete.css">
    
    <!-- Dependencies -->
    <script src="http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script src="http://yui.yahooapis.com/2.8.2r1/build/datasource/datasource-min.js"></script>
    
    <!-- Source file -->
    <script src="http://yui.yahooapis.com/2.8.2r1/build/autocomplete/autocomplete-min.js"></script>

    <script src="http://code.jquery.com/jquery-1.5.min.js"></script>
    <link rel="stylesheet" href="style.css" type="text/css" />
    <link rel="stylesheet" href="js/jquery.autocomplete.css" type="text/css" />
    <script type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
    <script type="text/javascript" src="js/jquery.dimensions.js"></script>
    <script type="text/javascript" src="js/jquery.autocomplete.js"></script>
    <link href="js/jquery-ui.css" rel="stylesheet" type="text/css"/>
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery-ui.min.js"></script>
    <script src="calendar.js"></script>
    <script src="script.js"></script>
    <script type="text/javascript" src="js/auto.js"></script>
    <script>

    </script>
  </head>
  <body class="yui-skin-sam" onload="draw();">
    <canvas id="canvas"></canvas>

    <div id="title">Nifty Logic Planner</div>
    <div id="subtitle">(Beta) Shoutout to NYC! <a href="#" onclick="$('#about').show('slow');$('#shader').show();">ABOUT</a> | Check out the Wordpress <a href="http://www.niftylogicplanner.wordpress.com" target=_blank >here</a>!</div>
    
	
    <div id="classes">
      <h3>Choose courses</h3>
      <input id="courseInput" onFocus="clearText(this)" onkeypress="{if (event.keyCode==13)addclass()}" Value="start typing a class number" /> 
      <div id="autocomplete"></div>
      <br><br><br><note>click on a class to remove it. Class name must be from list.</note>
<!--this is where you add custom events. BEOTCH -->
      <h3>Add a custom event</h3>		
       <input id="eventinput" onFocus="clearText(this)" value="Enter the title/name of the event" />
      <br><note>After inputting a name, fill out details and press return after each entry.</note>
	<input id="occurenceinfo" onFocus="clearText(this)" value="Enter the information for an occurence" onkeypress="{if (event.keyCode==13)addevent()}">
	<br><note>[Format: uniqueid-days(seperated by commas)-starttime-finishtime] NOTE: use all numbers or all characters, not both.</note>
	<br><note>Example: 54502-t,th-3:00am-4:00am </note>
	<!--Do not use all zeros for the unique id. At the moment if the generic event won't fall between 8am and 8pm, don't add it. use dashes as delimiters but NOT in the name of the event.-->
	
	
     </div>
    
    <div class="container" id="left"> 
      <h3>Add constraints</h3>
	<p>to add a constraint, make the appropriate selection and click "+" </p>

	<div id='xoutofy'>
	<h2>X out of Y</h2>
	<div id="xoy">Allow only <select id="totalclasses"><option>X</option></select> out of the selected classes<input id="xoybutton" type="button" value="+" onClick="addXoY();"></div>
	</div>		

	<div id='btb'>
	<h2>Allow only back to back</h2>	
	Allow	<div id="bb"><input type="button" value="+" onclick="btb();"></div><br><br>
	</div>
	<h2>Time spent on campus</h2>
	<div id="maxtime">
	On <select id="dayofweek"><option>Monday</option>
				<option>Tuesday</option>
				<option>Wednesday</option>
				<option>Thursday</option>
				<option>Friday</option></select> spend at most <input id="max" size="1" /> hours on campus. 
	<div id="mt"><input type="button" value="+" onclick="maxtime();"></div><br><br>
	</div>      
	<h2>Remove classes from time periods: </h2>
      	Monday<div id="madd"><input type="button" value="+" onclick="addTime('m');"></div> <div id="mslider" ></div> <br><br>
      	Tuesday <div id="tadd"><input type="button" value="+" onclick="addTime('t');"></div> <div id="tslider" ></div> <br><br>
      	Wednesday  <div id="wadd"><input type="button" value="+" onclick="addTime('w');"></div><div id="wslider" ></div><br><br>
      	Thursday <div id="thadd"><input type="button" value="+" onclick="addTime('th');"></div><div id="thslider" ></div> <br><br>
      	Friday  <div id="fadd"><input type="button" value="+" onclick="addTime('f');"></div><div id="fslider" ></div><br><br>
	<div id='orders'>
      <h2> Ordering: </h2>
      <select id="x">
	<option>No events selected</option></select>
      before
      <select id="y">
	<option>Select a Class</option></select>
	<input id="ordering" type="button" value="+" onclick="addOrdering();">
	</div>

	<div id='lockid'>
	<h2> Fix a specific event in place </h2>
	Enter Unique ID <input id="id" size="10" /><div id="luid"><input type="button" value="+" onClick="lockId();"></div>
	</div>

<br><hr>
<h2>Selected constraints:</h2>
<div id="selectedC"></div>
</div> 
<div id="shader"></div>
<div id="hide"><input type="button" value="view form" onclick="sho();"></div>
<div id="controls"> </div> 
<div id="schedule"></div>
<div id="about" onclick="$('#about').hide('slow');$('#shader').hide();"><h3>Nifty Logic Planner</h3>
<p>NTFT v0.5b</P>
<p>By: Albert Rondan and Nick Shelton</p>

<p>Face it, you have No Time For This. Let the age of automation take some of your stress away. NTFT Logic Scheduler can help you make your weekly schedule. Whether for school or work, you can craft your perfect schedule with the easy to use "Constraint" interface. Codenamed "Nifty", this application uses the power of Answer Set Programming to efficiently and effectively implement schedule creation. We hope you enjoy using Nifty as it saves you precious time. Let us know what you think or send suggestions to <a href=mailto:albert.ntft@gmail.com>albert.ntft@gmail.com</a></p>
<br />
Nifty is a free service for anyone to use. If it has saved you precious time and you would like to support us and continue to see updates, please feel free to donate!
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="alrondan@gmail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Nifty Logic Planner">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

<p>Special thanks go to:</p>
<ul>
<li><a href="http://www.cs.utexas.edu/~vl/">Vladimir Lifschitz</a></li>
<li><a href="http://potassco.sourceforge.net/">The University of Potsdam</a></li>
<li>jQuery</li>
<li>YUI</li>
<li>Apache2</li>
<li>Python</li>
</ul>
</div>
<div id="classContainer"></div>
<div id="submitbutton"><input style="height:50px; width:50%;" type="button" value="submit" onclick="submit();"></div>


</html> 
